package com.yuyou.fn.educational.service.impl;

import com.github.wens.mybatisplus.examples.Example;
import com.yuyou.fn.educational.entity.AttendanceRecord;
import org.springframework.stereotype.Service;

import com.yuyou.fn.educational.mapper.AttendanceRecordDetailMapper;
import com.yuyou.fn.educational.entity.AttendanceRecordDetail;
import com.yuyou.fn.educational.service.IAttendanceRecordDetailService;
import com.github.wens.framework.service.impl.SuperServiceImpl;

/**
 *
 * AttendanceRecordDetail 表数据服务层接口实现类
 *
 */
@Service
public class AttendanceRecordDetailServiceImpl extends SuperServiceImpl<AttendanceRecordDetailMapper, AttendanceRecordDetail,Long> implements IAttendanceRecordDetailService {


    @Override
    public Integer countByRecordId(Long recordId) {

        Example<AttendanceRecordDetail> example = AttendanceRecordDetail.createExample();
        example.createCriteria().andEqualTo("recordId" , recordId );
        return (int)countByExample(example);
    }
}